import {http} from "../../utils";
//获取首页轮播
export function getBannerImg() {
    return http.get('home/index/slide?token=1ec949a15fb709370f')
}
// 获取列表
export function getShopList() {
    return http.get('home/index/nav?token=1ec949a15fb709370f')
}
//获取复杂布局的商品
export function getShop() {
    return http.get('home/index/goodsLevel?token=1ec949a15fb709370f')
}
//获取商品列表
export function getGoodsList() {
    return http.get('home/index/recom?token=1ec949a15fb709370f')
}
// 获取切换商品列表
export function getGoodsItemizeList() {
    return http.get('home/category/menu?token=1ec949a15fb709370f')
}
//获取商品列表商品
export function getGoods(params) {
    return http.get('home/category/show?"',params)
}
export function getUsersGood(params) {
    return http.get('home/goods/info',params)
}
export function getUserComment(params) {
    return http.get('home/reviews/index',params)
}
//登录
export function doLogin(params) {
    return http.post('home/user/pwdlogin?token=1ec949a15fb709370f',params)
}
//注册
export function RegisterUser(params) {
    return http.post('home/user/reg?token=1ec949a15fb709370f',params)
}
//会员是否已经注册
export function IsRegister(params) {
    return http.post('home/user/isreg?token=1ec949a15fb709370f',params)
}
//获取用户信息
export function getUserPage(params) {
    return http.get('user/myinfo/userinfo/uid',params)
}
//修改密码
export function ChangePwd(params) {
    return http.post('user/myinfo/modpwd?token=1ec949a15fb709370f',params)
}
//热搜商品
export function getHotList() {
    return http.get('home/public/hotwords?token=1ec949a15fb709370f')
}
// 搜索商品
export function SearchGoods(params) {
    return http.post('home/goods/param',params)
}
export function getGoodsListItem(params) {
    return http.get('home/goods/search',params)
}
export function getGoodInfo(params) {
    return http.get('home/goods/info',params)
}
export function putcollection(params) {
    return http.get('goods/fav',params)
}
export function getCollection(params) {
    return http.get('user/fav/index',params)
}
export function delCollection(params) {
    return http.get('user/fav/del',params)
}
// 修改用户信息
export function saveMyPage(params) {
    return http.post('/user/myinfo/updateuser',params)
}
export function getUserAddress(params) {
    return http.get('/user/address/index',params)
}